home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / topware / pspad / pspad450inst_cz.exe / {app} / Context / WML.DEF < prev    next >
Text File  |  2004-05-07  |  11KB  |  419 lines

  1. ;; PSPad code template for WML (Wireless Markup Language)
  2. ;; Author: Karel Pavelka
  3. ;; E-mail: webjob@seznam.cz
  4. ;; Update: 28.4.2004
  5. ;;
  6. ;;   (black)     WML 1.2
  7. ;; B (blue)
  8. ;; D (dark gray)
  9. ;; F (fuchsia)
  10. ;; G (green)     Entity, zavorky, komentare
  11. ;; M (maroon)
  12. ;; N (navy)      Kusy kodu
  13. ;; P (purple)    PHP
  14. ;; R (red)       WTAI (Wireless Telephony Application Interface) funkce
  15. ;;
  16. ;; Odsazeni: 2
  17. ;
  18. ;
  19. [Macro definition]
  20. ;
  21. %phonenumber%=@C Phone Number:,,,"
  22. ;
  23. %acceptcharset%=@C accept-charset=,accept-charset=,,windows-1250;iso-8859-2;utf-8,"
  24. %accesskey%=@C accesskey=,accesskey=,,0;1;2;3;4;5;6;7;8;9,"
  25. %align3%=@C align=,align=,,center;left;right,"
  26. %aligni%=@C align=,align=,,bottom;middle;top,"
  27. %alt%=@E alt=,alt=,,,"
  28. %columns%=@E columns=,columns=,,,"
  29. %content%=@C content=,content=,,no-cache;must-revalidate;max-age=,"
  30. %domain%=@E domain=,domain=,,,"
  31. %emptyok%=@C emptyok=,emptyok=,,true;false,"
  32. %encoding%=@C encoding=,encoding=,,windows-1250;iso-8859-2;utf-8,"
  33. %format%=@C format=,format=,,A;a;N;X;x;M;m,"
  34. %forua%=@C forua=,forua=,,true;false,"
  35. %height%=@E height=,height=,,,"
  36. %href%=@O WML href=,href=,,wml file (*.wml;*.php;*.php3)|*.wml;*.php;*.php3,"
  37. %hspace%=@E hspace=,hspace=,,,"
  38. %id%=@E id=,id=,,,"
  39. %iname%=@E iname=,iname=,,,"
  40. %ivalue%=@E ivalue=,ivalue=,,,"
  41. %label%=@E label=,label=,,,"
  42. %lang%=@C xml:lang=,xml:lang=,,cs;sk;de;en;hu,"
  43. %maxlength%=@E maxlength=,maxlength=,,,"
  44. %method%=@C method=,method=,,get;post,"
  45. %mode%=@C mode=,mode=,,wrap;nowrap,"
  46. %multiple%=@C multiple=,multiple=,,true;false,"
  47. %name%=@E name=,name=,,,"
  48. %namem%=@C name=,name=,,vnd.up.markable;vnd.up.bookmark,"
  49. %newcontext%=@C newcontext=,newcontext=,,true;false,"
  50. %onenterbackward%=@E onenterbackward=,onenterbackward=,,,"
  51. %onenterforward%=@E onenterforward=,onenterforward=,,,"
  52. %onexit%=@E onexit=,onexit=,,,"
  53. %onpick%=@E onpick=,onpick=,,,"
  54. %onthrow%=@E onthrow=,onthrow=,,,"
  55. %ontimer%=@E ontimer=,ontimer=,,,"
  56. %optional%=@C optional=,optional=,,true;false,"
  57. %ordered%=@C ordered=,ordered=,,true;false,"
  58. %path%=@C path=,path=,,/,"
  59. %sendreferer%=@C sendreferer=,sendreferer=,,true;false,"
  60. %scheme%=@E scheme=,scheme=,,,"
  61. %size%=@E size=,size=,,,"
  62. %srcw%=@O src=,src=,,Image file (*.wbmp)|*.wbmp,"
  63. %tabindex%=@E tabindex=,tabindex=,,,"
  64. %title%=@E title=,title=,,,"
  65. %typeo%=@C type=,type=,,onpick;onenterforward;onenterbakward;ontimer,"
  66. %typedo%=@C type=,type=,,accept;delete;help;options;prev;reset;unknown;vnd.co-type;x-*,"
  67. %type%=@C type=,type=,,password;text,"
  68. %version%=@C version=,version=,,"1.0","
  69. %volume%=@E volume=,volume=,,,"
  70. %vspace%=@E vspace=,vspace=,,,"
  71. %width%=@E width=,width=,,,"
  72. ;
  73. [  |G ned∞litelnß mezera]*Shift+Ctrl+Space
  74.  
  75. [' |G apostrof]
  76. '
  77. [> |G znak ">"]
  78. >
  79. [< |G znak "<"]
  80. <
  81. [& |G ampersand]
  82. &
  83. [<...> |G zaΦßtek/konec tagu z oznaΦenΘho textu]*Ctrl+,
  84. <º>|</º>
  85. [<> |G zaΦßtek tagu <>]*Alt+,
  86. <|>
  87. [</> |G konec tagu </|>]*Alt+.
  88. </|>
  89. ;
  90. [!-- |G °ßdkov² komentß° <!-- text -->]
  91. <!-- º| -->
  92. [!--- |G komentß° bloku <!-- text -->]
  93. <!--
  94.   º|
  95. -->
  96. ;
  97. ;
  98. [a | odkaz]
  99. <a %href% %title% %lang% %accesskey%>º|</a>
  100. ;
  101. [access | specifikuje informace o kontrole p°φstupu na WML desku]
  102. <access %domain% %path%/>
  103. |
  104. ;
  105. [anchor | ukotvuje ·lohu na °et∞zec formßtovanΘho textu]
  106. <anchor %accesskey% %title% %lang%>º|</anchor>
  107. ;
  108. [b | tuΦn² text]*CTRL+B
  109. <b>º|</b>
  110. ;
  111. [big | zv∞tÜenφ pφsma]
  112. <big>º|</big>
  113. ;
  114. [br | zalomenφ °ßdku]*CTRL+ENTER
  115. <br/>
  116. ;
  117. [card | spcifikuje jednoduchou interakci mezi u₧ivatlem a za°φzenφm]
  118. <card %id% %title% %ontimer% %onenterforward% %onenterbackward% %ordered% %newcontext%>
  119.   º|
  120. </card>
  121. ;
  122. [catch | specifikuje zachytßvaΦ v²jimek, kter² m∙₧e provßd∞t vyjφmku vzniklou p°i provßd∞nφ ·lohy]
  123. <catch %onthrow% %name%>
  124.   º|
  125. </catch>
  126. ;
  127. [do | asociuje ·lohu s elementem uvnit° u₧ivatelskΘho rozhranφ]
  128. <do %typedo% %label% %lang% %name% %optional%>º|</do>
  129. ;
  130. [em | zv²razn∞nφ ]
  131. <em>º|</em>
  132. ;
  133. [exit | deklaruje ·lohu p°i odchodu, indikuje ₧e aktußlnφ obsah musφ b²t ukonΦen]
  134. <exit>
  135.   º|
  136. </exit>
  137. ;
  138. [fieldset | dovoluje seskupit mnohonßsobn² text nebo vstupnφ polo₧ky uvnit° karty]
  139. <fieldset %title% %lang%>
  140.   º|
  141. </fieldset>
  142. ;
  143. [go | udßlostnφ element, kter² instruuje za°φzenφ k otev°enφ specifikovanΘ URL adresy]
  144. <go %href%  %sendreferer% %method% %acceptcharset%>
  145.   º|
  146. </go>
  147. ;
  148. [head | specifikuje ·plnΘ informace o desce zahrnujφcφ metadata a informace pro kontrolu p°φstupu]
  149. <head>
  150.   º|
  151. </head>
  152. ;
  153. [i | kurzφva]*CTRL+I
  154. <i>º|</i>
  155. ;
  156. [img | img]
  157. <img %alt% %lang% %srcw% %src% %aligni% %height% %width% %vspace% %hspace%/>
  158. |
  159. ;
  160. [input | dovoluje u₧ivateli zadat vstupnφ text, kterΘmu za°φzenφ p°id∞luje prom∞nnou]
  161. <input %lang% %name% %title% %type% %value% %accesskey% %format% %emptyok% %size% %maxlength% %tabindex%/>
  162. |
  163. ;
  164. [link | specifikuje vztah mezi obsahem desky a dalÜφho dokumentu. Tento dokument musφ existovat uvnit° elementu <head>]
  165. <link %href% %rel% %sendreferer%/>
  166. |
  167. ;
  168. [meta | poskytuje meta informace o WML desce ]
  169. <meta http-equiv="cache-control" %content% %forua% %namem% %scheme%/>
  170. |
  171. ;
  172. [noop | udßlostφ element, kter² instruuje za°φzenφ k neΦinnost, tj. "₧ßdnß akce"]
  173. <noop/>
  174. ;
  175. [optgroup | dovoluje seskupovat mnohonßsobn² v²skyt elementu <option> (nebo vno°en² element <optgroup>) uvnit° elementu <card>]
  176. <optgroup %title% %lang%>
  177.   º|
  178. </optgroup>
  179. ;
  180. [onevent | asociuje p°echodn² stav nebo skuteΦnou udßlost s ·lohou. Kdy₧ skuteΦnß udßlost nastane, za°φzenφ provede asosiovanou ·lohu]
  181. <onevent %typeo%>
  182.   º|
  183. </onevent>
  184. ;
  185. [option | specifikuje konkrΘtnφ volbu uvnit° elementu <select>]
  186. <option %title% %value% %onpick% %lang%>
  187.   º|
  188. </option>
  189. ;
  190. [p | odstavec]*SHIFT+CTRL+P
  191. <p %align3% %mode% %lang%>
  192.   º|
  193. </p>
  194. ;
  195. [postfield | definuje nßzev/hodnotovΘ pßry, kterΘ odpovφdajφ HTTP serveru, je₧ p°ijφmß po₧adavek elementu <go>]
  196. <postfield %name% %value%/>
  197. ;
  198. [prev | udßlostnφ element, kter² instruuje za°φzenφ pro vymazßnφ aktußlnφ adresa URL ze zßsobnφku historie a otev°e p°edchozφ URL adresu.]
  199. <prev>|º</prev>
  200. ;
  201. [receive | pro p°φjem dat posφlan²ch z kontextu potomka]
  202. <receive %name%/>
  203. |
  204. ;
  205. [refresh | udßlostnφ element, kter² instruuje za°φzenφ pro znovunaΦtenφ specifikovan²ch prom∞nn²ch karty]
  206. <refresh>
  207.   º|
  208. </refresh>
  209. ;
  210. [reset | vyma₧e vÜechny prom∞nnΘ v aktußlnφm kontextu ]
  211. <reset/>
  212. |
  213. ;
  214. [select | specifikuje seznam voleb, ze kter²ch si m∙₧e u₧ivatel vybrat]
  215. <select %title% %name% %lang% %value% %tabindex% %multiple% %iname% %ivalue%>
  216.   º|
  217. </select>
  218. ;
  219. [send | specifikuje jednoduchou hodnotu zahrnovanou do bloku parametr∙ ]
  220. <send %value%/>
  221. |
  222. ;
  223. [setvar | nastavuje prom∞nnΘ na specifickΘ hodnoty, kdy₧ za°φzenφ spustφ n∞kterou z ·loh <g>,<prev>,<spawn> nebo <refresh> ]
  224. <setvar %name% %value%/>
  225. |
  226. ;
  227. [small | zmenÜenß velikost textu]
  228. <small>º|</small>
  229. ;
  230. [spawn | deklaruje ·lohu t°enφ, kterß indikuje vytvo°enφ potomka kontextu a z n∞j volanou adresu]
  231. <spawn %href% %onexit% %sendreferer% %method% %acceptcharset%>
  232.   º|
  233. </spawn>
  234. ;
  235. [strong | siln∞ zv²razn∞n² text]
  236. <strong>º|</strong>
  237. ;
  238. [table | tabulka]
  239. <table %lang% %align3% %title% %columns%>
  240.   º|
  241. </table>
  242. ;
  243. [TABLEj | jednoduchß tabulka]
  244. <table %columns%>
  245. <tr><td>º|</td></tr>
  246. </table>
  247. ;
  248. [td | bu≥ka tabulky]
  249. <td>º|</td>
  250. ;
  251. [template | definuje ·rove≥ vazby desky k udßlostem]
  252. <template %ontimer% %onenterforward% %onenterbackward%>
  253.   º|
  254. </template>
  255. ;
  256. [throw | deklaruje ·lohu throw (hozenou) indikujφcφ, ₧e vyjφmka m∙₧e r∙st]
  257. <throw %name%>
  258.   º|
  259. </throw>
  260. ;
  261. [timer | poskytuje metodu pro automatickΘ volßnφ ·lohy po n∞jakΘ ΦasovΘ period∞ u₧ivatelskΘ neΦinnosti]
  262. <timer %name% %value%/>
  263. |
  264. ;
  265. [tr | °ßdek tabulky]
  266. <tr>º|</tr>
  267. ;
  268. [wml | vymezenφ desky WML dokumentu]
  269. <wml %lang%>
  270.   º|
  271. </wml>
  272. ;
  273. [WMLs |N jednoduchß WML 1.2 strßnka ]
  274. <?xml version="1.0" %encoding%?>
  275.  
  276. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
  277.  
  278. <wml %lang%>
  279.   º|
  280. </wml>
  281. ;
  282. [xml |N hlaviΦka dokumentu WML 1.1]
  283. <?xml version="1.0" %encoding%?>
  284.  
  285. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
  286. ;
  287. [xml |N hlaviΦka dokumentu WML 1.2]
  288. <?xml version="1.0" %encoding%?>
  289.  
  290. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
  291. ;
  292. [PHPindex |P WWW i WAP verze strßnek na jednΘ adrese]
  293. <?php
  294.   $typ=strtoupper($HTTP_ACCEPT);
  295.   if (ereg("WML",$typ)) {
  296.     include("indexwap.php");
  297.     }
  298.   else {
  299.     include("indexhtml.php");
  300.   }
  301. ?>
  302. ;
  303. [PHPh |P hlaviΦka v PHP]
  304. <?php
  305.   header("Content-type: text/vnd.wap.wml");
  306.   echo("<?xml version=\"1.0\"?>\n");
  307.   echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n\n");
  308. ?>
  309. [PHPdetekce |P detekce v PHP]
  310. <wml>
  311.   <card id="detekt" title="Detekce">
  312.     <p>
  313.       <?php
  314.       // Φßst prvni - standardnφ HTTP hlaviΦka
  315.       $headers = getallheaders();
  316.       while (list($header, $value) = each($headers)) {
  317.         echo strtoupper($header).": ". $value."<br/>\n";
  318.       }
  319.       // druhß Φßst
  320.       echo("REMOTE_ADDR: ".$REMOTE_ADDR."<br/>\n");               // IP addresa klientskΘ strany
  321.       echo("REMOTE_PORT: ".$REMOTE_PORT."<br/>\n");               // Port pou₧ity z klientskΘ strany
  322.       echo("REMOTE_USER: ".$REMOTE_USER."<br/>\n");               // Jmeno autentifikovanΘho u₧ivatele, pokud byla autentifikace provedena
  323.       echo("GATEWAY_INTERFACE: ".$GATEWAY_INTERFACE."<br/>\n");   // typ interface brany
  324.       echo("SERVER_PROTOCOL: ".$SERVER_PROTOCOL."<br/>\n");       // Protokol pou₧it² serverem
  325.       echo("REQUEST_METHOD: ".$REQUEST_METHOD."<br/>\n");         // Request metoda
  326.       echo("HTTP_CONNECTION: ".$HTTP_CONNECTION."<br/>\n");       // Connection type
  327.       echo("HTTP_VIA: ".$HTTP_VIA."<br/>\n");                     // Jak je host napojen (proxy)
  328.       ?>
  329.     </p>
  330.   </card>
  331. </wml>
  332. [A_wtai: |R ]
  333. <a href="wtai://wp/mc;%phonenumber%">º|</a>
  334. ;
  335. [Keywords]
  336. accept
  337. accept-charset=
  338. access
  339. accesskey=
  340. align=
  341. alt=
  342. anchor
  343. br/>
  344. card
  345. catch
  346. columns=
  347. content=
  348. DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
  349. domain=
  350. emptyok=
  351. encoding=
  352. exit
  353. fieldset
  354. format=
  355. forua=
  356. go
  357. head
  358. height=
  359. href=
  360. hspace=
  361. iname=
  362. ivalue=
  363. label=
  364. maxlength=
  365. method=
  366. mode=
  367. multiple=
  368. must-revalidate
  369. newcontext=
  370. no-cache
  371. noop/>
  372. nowrap
  373. onenterbackward=
  374. onenterbakward
  375. onenterforward
  376. onenterforward=
  377. onevent
  378. onexit=
  379. onthrow=
  380. ontimer
  381. ontimer=
  382. optgroup
  383. option
  384. optional=
  385. ordered=
  386. password
  387. path=
  388. postfield
  389. receive
  390. reset/>
  391. select
  392. send
  393. sendreferer=
  394. setvar
  395. scheme=
  396. size=
  397. small>
  398. spawn
  399. strong>
  400. tabindex=
  401. table
  402. td>
  403. template
  404. throw
  405. timer
  406. title=
  407. tr>
  408. type=
  409. unknown
  410. version=
  411. vnd.wap.wml
  412. volume=
  413. vspace=
  414. wbmp
  415. width=
  416. wml
  417. xml version="1.0"
  418. xml:lang=
  419.